# 使用 Eclipse Temurin JRE 11 基础镜像 (Ubuntu 22.04 Jammy)
FROM  openapi.enfi.com.cn:30012/library/openjdk:8-jre

# 挂载目录
VOLUME /home/enfi
# 创建目录
RUN mkdir -p /home/enfi
# 指定路径
WORKDIR /home/enfi
# 复制jar文件到路径
# COPY ./jeecg-boot-base-core/target/jeecg-boot-base-core*.jar /home/enfi/jeecg-boot-base-core.jar
# COPY ./jeecg-module-demo/target/jeecg-module-demo*.jar /home/enfi/jeecg-module-demo.jar
# COPY ./jeecg-module-system/jeecg-system-api/jeecg-system-local-api/target/jeecg-system-local-api*.jar /home/enfi/jeecg-system-local-api.jar
# COPY ./jeecg-module-system/jeecg-system-api/jeecg-system-local-api/target/jeecg-system-cloud-api*.jar /home/enfi/jeecg-system-cloud-api.jar
# COPY ./jeecg-module-system/jeecg-system-biz/target/jeecg-system-biz*.jar /home/enfi/jeecg-system-biz.jar
COPY ./jeecg-module-system/jeecg-system-start/target/jeecg-system-start*.jar /home/enfi/jeecg-system-start.jar

ENV JAVA_OPTS="-Xms1024m -Xmx1024m -XX:MetaspaceSize=512m -XX:MaxMetaspaceSize=512m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8"

EXPOSE 8080

ENTRYPOINT java ${JAVA_OPTS} -jar jeecg-system-start.jar
